﻿using System;
using System.Windows.Controls;
using System.Windows.Input;
using VkClientIM.Logic;
using VkClientIM.Windows;

namespace VkClientIM.UI
{
	public partial class MyProfilePresenter : UserControl
	{
		public MyProfilePresenter()
		{
			InitializeComponent();
		}

		private void ProfileShow(object sender, MouseButtonEventArgs e)
		{
			Profile p = DataContext as Profile;
			if (p != null)
			{
				Windows.ProfileWindow profileWindow = new ProfileWindow();
				profileWindow.LoadProfile(p);
				profileWindow.Show();
			}
		}
	}
}
